<?php
namespace app\wap\controller;

class User  extends  Base
{

     public  function index(){
         //获取控制器
         return $this->fetch();
     }
    //快捷充值
     public function recharge(){
         $this->assign('dh','快捷充值');
         return $this->fetch();
     }
     //复投中心
    public function ftcenter(){
        $this->assign('dh','积分转余额');
        return $this->fetch();
    }
    //余额明细
    public function balance(){
        $this->assign('dh','余额明细');
        return $this->fetch();
    }

    //提现明细
    public function  withdraw(){
        $this->assign('dh','提现明细');
        return $this->fetch();
    }
    //兑换明细
    public function  exchange(){
        $this->assign('dh','兑换明细');
        return $this->fetch();
    }

    //会员结构
    public function rr(){
        $this->assign('dh','会员结构');
        return $this->fetch();
    }
    //推广链接
    public function tuiguang(){
        $this->assign('dh','推广链接');
        return $this->fetch();
    }

    //站内信
    public function msg(){
        $this->assign('dh','站内信');
        $clause = $this->request->param('clause');
        $clause = trim($clause);
        if($clause=='in'){
            $this->assign('dh','收件箱');
            return $this->fetch('msgin');
        }
        if($clause=='out'){
            $this->assign('dh','发件箱');
            return $this->fetch('msgout');
        }
        return $this->fetch();
    }
    //账号信息
    public function pi(){
        $this->assign('dh','个人资料');
        $type = $this->request->param('type');
        $type = trim($type);
        if($type==1){
            return $this->fetch('pi1');
        }
        if($type==2){
            $this->assign('dh','修改登录密码');
            return $this->fetch('pi2');
        }
        if($type==3){
            $this->assign('dh','修改安全密码');
            return $this->fetch('pi3');
        }
        if($type==4){
            $this->assign('dh','密保问题设置');
            return $this->fetch('pi4');
        }
        return $this->fetch();


    }










}
